package com.linxcong.security;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * @Author:linchong
 * @CreateTime:2020-07-14 11:55
 * @Description:
 */
@SpringBootApplication
public class Oauth2AuthApplication {
	public static void main(String[] args) {
		SpringApplication.run(Oauth2AuthApplication.class, args);
	}


	@Bean
	public BCryptPasswordEncoder passwordEncoder() {
		return new BCryptPasswordEncoder();
	}

}
